-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bazel] Use tmp dir for intermediate NVCC source files #22950
[bazel] Use tmp dir for intermediate NVCC source files #22950
Conversation
* When using the local cuda cross-compilation toolchain, header file changes to cc_library would not trigger rebuilds for dependent cc_binary rules.
This issue seems to be gone on e.g. commit |
@gunan PTAL |
Not familiar with this bug, I will let @meteorcloudy comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for this change! Just a small comment.
def _get_nvcc_tmp_dir_for_unix(repository_ctx): | ||
"""Return the UNIX tmp directory for nvcc to generate intermediate source files.""" | ||
escaped_tmp_dir = escape_string( | ||
get_env_var(repository_ctx, "TMPDIR", "/tmp")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add TMP
and TMPDIR
here:
tensorflow/third_party/gpus/cuda_configure.bzl
Lines 1569 to 1574 in c2e2ece
environ = [ | |
_GCC_HOST_COMPILER_PATH, | |
_CLANG_CUDA_COMPILER_PATH, | |
"TF_NEED_CUDA", | |
"TF_CUDA_CLANG", | |
_TF_DOWNLOAD_CLANG, |
So that when the environment variable changes, the CROSSTOOL will get reconfigured.
Nagging Reviewer @gunan, @meteorcloudy: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 14 days with no activity and the |
PiperOrigin-RevId: 239009781
header file changes to cc_library would not trigger rebuilds for
dependent cc_binary rules.
More info can be provided if needed to repro the bug in question.